using Cooking.Core.DataInterfaces;
using Cooking.Data;
using StructureMap.Configuration.DSL;

namespace Cooking.Web.Code
{
    public class DataRegistry : Registry
    {
        protected override void configure()
        {
            Scan(scanner =>
                     {
                         scanner.AssemblyContainingType(typeof (IIngredientDao));
                         scanner.IncludeNamespace("Cooking.Core.DataInterfaces");
                         scanner.AssemblyContainingType(typeof (IngredientDao));
                         scanner.IncludeNamespace("Cooking.Data");
                         scanner.WithDefaultConventions();
                     }
                );
        }
    }
}